package com.kitty.game.achieve.body;
//活动类型加活动次数

import lombok.extern.slf4j.Slf4j;

import java.util.EnumSet;

/**活动类型*/
@Slf4j
public enum BossImgType {
    /**黑熊妖皇*/
    HEIXIONGYAOHUANG("1", 1),
    /**魅影蝎后*/
    MEIYINGXIEHOU("2", 1),
    /**血炼魔猪*/
    XUELIANMOZHU("3", 1),
    /**赤血鬼猿*/
    CHIXUEGUIYUAN("4", 1),
    /**七杀星君*/
    QISHAXINGJUN("5", 1),
    /**昊天君*/
    HAOTIANJUN("6", 1),
    /**阳天君*/
    YANGTIANJUN("7", 1),
    /**赤天君*/
    CHITIANJUN("8", 1),
    /**朱天君*/
    ZHUTIANJUN("9", 1),
    /**成天君*/
    CHENGTIANJUN("10", 1),
    /**幽天君*/
    YOUTIANJUN("11", 1),
    /**玄天君*/
    XUANTIANJUN("12", 1),
    /**变天君*/
    BIANTIANJUN("13", 1),
    /**钧天君*/
    JUNTIANJUN("14", 1),

    /**炼狱冥炎·一*/
    LIANYUMINGYANYI("15", 0),
    /**炼狱冥炎·二*/
    LIANYUMINGYANRE("16", 0),
    /**炼狱冥炎·三*/
    LIANYUMINGYANSAN("17", 0),
    /**炼狱冥炎·四*/
    LIANYUMINGYANSI("18", 0),
    /**炼狱冥炎·五*/
    LIANYUMINGYANWU("19", 0),
    /**炼狱冥炎·六*/
    LIANYUMINGYANLIU("20", 0),
    /** 炼狱冥炎·七*/
    LIANYUMINGYANQI("21",0),
    /**炼狱冥炎·八*/
    LIANYUMINGYANBA("22", 0),

    /**炼狱冥炎·九*/
    LIANYUMINGYANJIU("23", 0),
    /**九幽冥雀*/
    JIUYOUMINGQUE("24", 1),
    /**真武魔帝*/
    ZHENWUMODI("25", 1),
    /**东山邪灵*/
    DONGSHANXIELING("26", 1),
    /**杀戮魔皇*/
    SHALUMOHUANG("27", 1),
    /**魔龙之尾*/
    MOLONGZHIWEI("28", 1),
    /**魔龙之爪*/
    MOLONGZHIZHUA("29", 1),
    /**魔龙之首*/
    MOLONGZHISHOU("30", 1),
    /**魔龙屯天*/
    MOLONGTUNTIAN("31", 1),
    /**魔龙吞天怒*/
    MOLONGTUNTIANNU("32", 0),














    ;

    /**活动id*/
    private String activityId;
    /**活动总次数*/
    private int bossState;

    BossImgType(String activityId, int totalCount) {
        this.activityId = activityId;
        this.bossState = totalCount;
    }

    public String getActivityId() {
        return activityId;
    }

    public int getBossState() {
        return bossState;
    }

    public void setBossState(int bossState) {
        this.bossState = bossState;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }


    public static int  getBossState(String activityId){
        int state=0;
        for (BossImgType type : EnumSet.allOf(BossImgType.class)) {
            if(activityId.equals(type.getActivityId())){
                state = type.getBossState();
            }
        }
        return state;
    }
    public static String   getBossId(String name){
        String id= "";
        for (BossImgType type : EnumSet.allOf(BossImgType.class)) {
            if(name.equals(type.toString())){
                id = type.getActivityId();
            }
        }
        return id;
    }

    public static void main(String[] args) {
        int state=0;
        for (BossImgType value : BossImgType.values()) {
            System.out.println(value);
        }

        System.out.println();


        System.out.println(getBossId("HEIXIONGYAOHUANG"));
    }


}
